package com.autumn.platform.core.support.order.impl;

import com.autumn.platform.core.support.order.IOrdered;

public class Orderable implements IOrdered {

    private int order;

    public Orderable() {}

    public Orderable(int order) {
        this.order = order;
    }

    @Override
    public int getOrder() {
        return order;
    }

    public void setOrder(int order) {
        this.order = order;
    }

    public void setHighest() {
        this.order = HIGHEST_PRECEDENCE;
    }

    public void setlowest() {
        this.order = LOWEST_PRECEDENCE;
    }
}
